package org.biliviz.be.controller;

import io.swagger.annotations.ApiOperation;
import org.biliviz.be.entity.VhChannelCount;
import org.biliviz.be.entity.VhScoreLfc;
import org.biliviz.be.service.VhChannelCountService;
import org.biliviz.be.service.VhScoreLfcService;
import org.biliviz.be.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sg
 * @since 2024-02-17
 */
@RestController
@RequestMapping("/api")
public class VhScoreLfcController {
    @Autowired
    VhScoreLfcService vhScoreLfcService;

    @ApiOperation(value = "标签")
    @GetMapping("vhslfc")
    public R loginUser() {
        //member对象封装手机号和密码
        //调用service方法实现登录
        //返回token值，使用jwt生成
        List<VhScoreLfc> vhslfc= vhScoreLfcService.getAll();
        return R.ok().data("vhslfc",vhslfc);
    }
}
